package com.safone.thirdattendanceservices.activemq;


import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author xy
 * @date 2020/12/22 18:42
 */
@Component
public class TopicConsumerController {
//    @JmsListener(destination="${spring.activemq.topic-name}", containerFactory="topicListener")
//    public void readActiveQueue(String message) {
//        System.out.println("接受到：" + message);
//    }



    @JmsListener(destination = "mq.edualarm.msg.attendance.third", containerFactory = "jmsListenerContainerTopic")
    public void receiveStringTopic(String msg) {
        System.out.println("ATopicConsumer接收到消息...." + msg);
    }
}
